-- GENERATED SPELL FOR [Altar of Sha'tar Vindicator] --


function spell0_21986(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(12024,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21986', 5280, 1)
end

function Sorts_21986(pUnit, Event)
local choix_sorts_21986 = math.random(0, 0)
if choix_sorts_21986 == 0 then
pUnit:RegisterEvent('spell0_21986', 1, 1)
end
end

function mob21986_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21986', math.random(1500, 3000), 1)
end

function mob21986_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21986_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21986_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21986, 1, 'mob21986_Action')
RegisterUnitEvent(21986, 2, 'mob21986_Leave')
RegisterUnitEvent(21986, 3, 'mob21986_Kill')
RegisterUnitEvent(21986, 4, 'mob21986_Die')
